package com.spsoft.vatoutinv.model.vo.vmscreditlimit;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.spsoft.vatoutinv.annotation.Translate;
import com.spsoft.vatoutinv.constants.DictConstant;
import com.spsoft.vatoutinv.constants.TranslateConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wangy
 * @date 2023/11/24 10:50
 */
@Data
public class VmsCreditlimitVO {

    @ApiModelProperty(value = "暂停授信标志;Y：暂停  N：未暂停")
    @Translate(type = TranslateConstant.DICT, value = DictConstant.VMS_ZTSXBZ)
    private String ztsxbz;

    @ApiModelProperty(value = "本月总授信额度")
    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal bysxed;

    @ApiModelProperty(value = "可用剩余额度(本月可用授信额度)")
    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal kysyed;

    @ApiModelProperty(value = "已下载额度;本月乐企1.5已下载的全部授信额度")
    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal yxzed;

    @ApiModelProperty(value = "已下载未使用额度;本月乐企1.5已下载的全部授信额度减已上传的开票日期为本月的发票的总金额")
    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal yxzwsyed;

    @ApiModelProperty(value = "属期;格式：YYYYMM")
    private String sq;

    @ApiModelProperty(value = "授信额度使用区间起;下载授信额度时，有此节点全电发票开票日期在授信额度使用区间（含）时才可以使用.格式：YYYYMMDD")
    @Translate(type = TranslateConstant.DATE)
    private Date syqjq;

    @ApiModelProperty(value = "授信额度使用区间止;下载授信额度时，有此节点全电发票开票日期在授信额度使用区间（含）时才可以使用.格式：YYYYMMDD")
    @Translate(type = TranslateConstant.DATE)
    private Date syqjz;

}
